# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class ResourceOperateRecordReq(object):

    def __init__(self, site, appCode, serviceCode, resourceId, opType, formula, opTime, pin, region=None, release=None):
        """
        :param site:  站点
        :param appCode:  产品线
        :param serviceCode:  产品编码
        :param resourceId:  资源ID
        :param opType:  操作行为 (1:启动 2：关闭 3：变配 4：删除)
        :param formula:  资源配置信息
        :param opTime:  操作时间(格式为：yyyy-MM-dd HH:mm:ss)
        :param region: (Optional) 地域
        :param pin:  用户
        :param release: (Optional) 释放标识，不传默认释放（1：释放 0：不释放）
        """

        self.site = site
        self.appCode = appCode
        self.serviceCode = serviceCode
        self.resourceId = resourceId
        self.opType = opType
        self.formula = formula
        self.opTime = opTime
        self.region = region
        self.pin = pin
        self.release = release
